<div class="users form">
{{if $current_action=='admin_add'}}
<?php 
echo $this->MForm->create($current_model,array(    
	'url' => array('action' => 'add'),
));
?>
{{elseif $current_action=='admin_edit'}}
 <?php 
echo $this->MForm->create($current_model,array(
    'url' => array('action' => 'edit',$id,$copy),
));
?>
{{/if}}

<fieldset>
<?php
    echo $this->MForm->input('id');
	echo $this->MForm->input('mobile');
    
?>
{{if $current_action=='admin_add'}}
    {{$this->MForm->input('password')}}
{{else}}
	{{$this->MForm->input('password',array('value'=>'','after'=>'若不修改密码，请留空'))}}
{{/if}}
<?php
	echo $this->MForm->input('username');        
	echo $this->MForm->input('nickname');
	echo $this->MForm->input('sex');
    echo $this->MForm->input('email');
		
	echo $this->MForm->input('wechat');
	echo $this->MForm->input('qq');
?>
	</fieldset>
    <div class="form-group">
		<label class="col-sm-2 control-label" for="ProductName"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="{{__('Submit')}}"></div>
	</div>
<?php echo $this->MForm->end();?>
</div>